]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[AppWell] Fix D&D for ShellApp
authorColin Walters <walters@verbum.org>
Wed, 14 Oct 2009 21:25:17 +0000 (17:25 -0400)
committerColin Walters <walters@verbum.org>
Thu, 15 Oct 2009 17:24:19 +0000 (13:24 -0400)
The drag and drop case needed to be updated to use ShellApp
correctly.  Export _is_transient for better compatibility.

https://bugzilla.gnome.org/show_bug.cgi?id=598227

js/ui/appDisplay.js
src/shell-app.c
src/shell-app.h

index 47dd726ef6208385308290325ffe8c3438884fdc..e3da4854a3913bf089ad2bb351b9e64cce39c7af 100644 (file)
@@ -850,7 +850,7 @@ AppWell.prototype = {
         let contextId = "";
 
         let running = this._appMonitor.get_running_apps(contextId);
-        let runningIds = this._appIdListToHash(running)
+        let runningIds = this._appIdListToHash(running);
 
         for (let i = 0; i < favorites.length; i++) {
             let app = favorites[i];
@@ -891,10 +891,10 @@ AppWell.prototype = {
 
         let id = app.get_id();
 
-        let favoriteIds = this._appSystem.get_favorites();
-        let favoriteIdsObject = this._arrayValues(favoriteIds);
+        let favorites = this._appMonitor.get_favorites();
+        let favoriteIds = this._appIdListToHash(favorites);
 
-        let srcIsFavorite = (id in favoriteIdsObject);
+        let srcIsFavorite = (id in favoriteIds);
 
         if (srcIsFavorite) {
             return false;
index 8effd1bd4a63d1bba116ba26328c290c64e1bc1c..6ce0983803f0e8d6003c6c507c9d054f158814a0 100644 (file)
@@ -64,6 +64,12 @@ shell_app_get_description (ShellApp *app)
   return shell_app_info_get_description (app->info);
 }
 
+gboolean
+shell_app_is_transient (ShellApp *app)
+{
+  return shell_app_info_is_transient (app->info);
+}
+
 /**
  * shell_app_get_info:
  *
index 9af07c6adf00eba959bd47fe4e2e063440c54573..232b07ad1cc6b590a6303961e99b00b3640e59dd 100644 (file)
@@ -34,6 +34,7 @@ const char *shell_app_get_id (ShellApp *app);
 ClutterActor *shell_app_create_icon_texture (ShellApp *app, float size);
 char *shell_app_get_name (ShellApp *app);
 char *shell_app_get_description (ShellApp *app);
+gboolean shell_app_is_transient (ShellApp *app);
 
 ShellAppInfo *shell_app_get_info (ShellApp *app);